<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // for循环
        // for (初始化变量; 条件表达式; 操作表达式) {
        //     // 循环体
        // }
        let sumI = 0
        for (let i = 1; i <= 100; i++) {
            sumI = sumI + i
            console.log(`sumI = 前${i}数之和 ${sumI}`)
            }

    </script>
</body>
</html>